< previous page page_655 next page >

Page 655
0655-01.jpg
Figure 29.11
Crystal Reports allows you to design
a report from scratch or with the help of an
"expert." The data for your report can be retrieved 
through ODBC or one of the included drivers.
Creating a Report from Scratch
To continue with the sample report from the BIBLIO database, click the Custom button to display the Choose Report Type and Data Type dialog box. Make sure that the Custom Report button is selected and click the Data File button. Next, specify the location of the BIBLIO.MDB Access database (it's usually in the Visual Basic program directory).
After you select the database file, the Insert Database Field dialog box, shown in Figure 29.12, should automatically appear. This dialog box, which is also available from the Insert menu, allows you to determine which fields are placed on the report.
0655-02.jpg
Figure 29.12
To highlight multiple items in
this dialog box, hold down the Ctrl
key while clicking the field names.
For the example, select the Author field from the Authors table, and the Title field from the Titles table. (The BIBLIO database already contains appropriate links between the various tables.) Position the Insert Fields dialog box so that you can also see the main Crystal Reports Designer window. Then drag the selected fields from the Insert Fields dialog box to the Details section of the report. Position the fields so that your report looks like the one shown in Figure 29.13. Click Done to close the Insert Database Field dialog box.
Finally, test your report by clicking the lightning bolt button in the toolbar. Clicking this button activates preview mode, allowing you to see how the report will look with database records. To save the finished report, click the Save button or choose File, Save.
tip.gif
Turn off the Save Data with Report option if you intend to programmatically display this report with new data every time. You can access this option by selecting File, Options and clicking the Reporting tab.

Creating a Report with the Create Report Expert
Using the Create Report Expert is another way to create your report. From the Create New Report dialog box, simply click the type of report you want. The available selections are described here:

 
< previous page page_655 next page >